package com.yhd.cloud.feignclient;

import com.yhd.cloud.feignclient.impl.StockFeignClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author yinhuidong3@xiaomi.com
 * @since 2021/7/27
 */
@Component
@FeignClient(name = "service-stock",fallback = StockFeignClientImpl.class)
public interface StockFeignClient {


    @GetMapping("/stock/delStock/{skuId}/{skuNum}")
    String delProductNumById(
            @PathVariable("skuId") Integer skuId,
            @PathVariable("skuNum") Integer skuNum
    );
}
